select ( directive in module ng )

Description

HTML SELECT element with angular data-binding.

ngOptions

Optionally ngOptions attribute can be used to dynamically generate a list of elements for a element. This element will then represent null or "not selected" option. See example below for demonstration.

Note: ngOptions provides iterator facility for element which should be used instead of ngRepeat when you want the select model to be bound to a non-string value. This is because an option element can currently be bound to string values only.

Usage

as element (see IE restrictions)
<select
       ngModel="{string}"
       [name="{string}"]
       [required]
       [ngRequired="{string}"]
       [ngOptions="{comprehension_expression}"]>
</select>

Parameters